package com.foreknow.springboot_demo.mapper;

import com.foreknow.springboot_demo.po.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.sql.SQLException;
import java.util.List;

@Mapper
public interface FoodMapper {
    /**
     * 根据商家编号查询所属食品信息
     * @param businessId
     * @return
     */
    @Select("select * from food where businessId=#{businessId}")
    public List<Food> getBusinessById(int businessId);
}
